package com.fu.core.common;

/**
 * @author 付龙江
 * @date 2022/1/27 21:30
 */
public enum ExceptionCode {
    //此处写枚举错误
    PARAMETER("1000", "占位符"),
    PARAMETER_PASSING_EXCEPTION("1001","参数传递异常"),
    NO_MATCHING_RESULT("1002","没有匹配的结果"),
    INSERT_FAILED("1003","插入失败"),
    DELETE_FAILED("1004","删除失败"),
    UPDATE_FAILED("1005","更新失败"),
    NO_PHONE_AUTH("1006","手机号未授权"),
    NO_TOKEN("5001","未携带token"),
    WRONG_PHONE_OR_PWD("5002","账号或密码错误"),
    TIMEOUT_PHONE("5003","请求超时"),
    NO_STORE("5004","未绑定商户,请完善商户信息"),
    WRONG_CODE("5005","验证码错误或已过期"),
    NO_ADMIN("5006","该管理员不存在！"),
    CODE_FAILED("5007","校验不通过！"),
    PICTURE_NOT_EXIST("5008", "图片不存在"),
    WRONG_TOKEN("5009","token有误！"),
    LOGIN_EXPIRED("5010","用户信息已过期，请重新登录"),
    NO_BANNERS("5011","还没有任何banner信息"),
    NO_NOTICES("5012","该用户没有新消息回复"),
    GET_GOODS_FILED("5013","获取商品对象失败"),
    GET_SKUS_FILED("5014","获取商品的sku集合失败"),
    GET_PICTURES_FILED("5015","获取商品特色图集合失败"),
    ORDER_CANCEL_FILED("5016","订单已完成，取消失败！")
    ;

    private String code;
    private String message;

    ExceptionCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
